package service;

import bean.User;

import java.util.List;

public interface UserService {
    List<User> getAll();
    void insertUser(User user);
    User getUserByUsername(String username);

    void deleteUser(int userId);
    void updateUser(User user);
    boolean register(User user);
    User login(String username, String password);
}
